<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>修改</h2>
<form th:method="post" th:action="@{/users/update}">
    <input name="id" th:value="${user.id}" type="hidden">
    <table>
        <tr>
            <td>区域名称:</td>
            <td><input type="text" name="districtName" th:value="${user.districtName}"></td>
        </tr>
        <tr>
            <td>监测时间:</td>
            <td><input type="text" name="monitorTime" th:value="${#dates.format(user.monitorTime,'yyyy-MM-dd')}"></td>
        </tr>
        <tr>
            <td>雨量值(mm):</td>
            <td><input type="text" name="rain" th:value="${user.rain}"></td>
        </tr>
        <tr>
            <td>监测站</td>
            <td><input type="text" name="monitoringStation" th:value="${user.monitoringStation}"></td>
        </tr>
        <tr>
            <td>站点地址:</td>
            <td><input type="text" name="monitoringAddress" th:value="${user.monitoringAddress}"></td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="修改">
            </td>
        </tr>
    </table>
</form>
</body>
</html>